package com.allin.social.util;

import com.allin.http.request.OkHttpRequest;

import java.util.HashMap;
import java.util.Map;

/**
 * Description:
 *
 * @author: guoyongping
 * @date: 2016/4/13 20:19
 */
public class MyOkHttputil {


    public static void get(String url, Map params, MyBaseHttpRequestCallback callback) {
        String jsonParam = GsonUtil.toJSONStr(params);
        Map p = new HashMap();
        p.put("queryJson", jsonParam);
        LogUtil.i("get url---:", url + "params--:" + p.toString());
        new OkHttpRequest.Builder().url(url).params(p).get(callback);
    }
}
